<?php require_once 'config.php';?>
<html>
<head>
<title>確定付款資訊</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<SCRIPT LANGUAGE="JavaScript">
var NS4=(document.layers);
var IE4=(document.all);
function chkBtnDown(e)
{
  var RightBtn = false;
  if(IE4)
  {
    if(event.button == 2 | event.button == 3) RightBtn = true
  }else
    {
      if(e.which == 3) RightBtn = true
    }
  if(RightBtn)
  {
    alert("請不要按下右鍵，以利交易順利進行");
    return false;
  }
}
if(NS4)
{
  document.captureEvents(Event.MOUSEDOWN);
}
document.onmousedown = chkBtnDown;
</script>
<body background="./image/background.jpg" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="600" border="1" align="center" bordercolor="#5D5D5D">
  <tr valign="top" bordercolor="#CCCCCC">
    <td>
      <table width="100%" border="0">
        <tr>
          <td>
            <table width="100%" border="0" background="./image/top_middle.jpg" cellpadding="0" cellspacing="0">
              <tr>
                <td><img src="./image/top_middle2.jpg" width="460" height="49"></td>
              </tr>
              <tr bgcolor="#000000">
                <td>&nbsp;</td>
              </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td height="60">
            <table width="100%" border="0" background="./image/bg.jpg">
              <tr>
                <td width="48%" valign="bottom" height="103"> <font size="2" color="#0033CC">請確認訂購商品是否正確</font>
                  <br>
                  <font size="2">訂單編號：</font>【<?php print $OrderNumber?>】</td>
                <td width="52%" rowspan="2">
                  <div align="right"><img src="./image/GRIDBX2.jpg" width="103" height="120"></div>
                </td>
              </tr>
              <tr>
                <td width="48%" valign="bottom" height="2"><img src="./image/bar.gif" width="350" height="8"></td>
              </tr>
              <tr>
                <td height="16" colspan="2">
                  <form action="<?php echo NEWEB_PAY_URL?>" method=post target="_blank">
                    <table width="100%" border="1" cellspacing="0" cellpadding="0" bordercolor="#FFFFFF" height="100%">
                      <tr valign="top">
                        <td> <font color="#CC0000"><font size="4"><b>::</b></font>
                          購物商品如下 <font size="4"><b>::</b></font></font></td>
                      </tr>
                      <tr valign="top">
                        <td bordercolor="#999999">
                          <table width="100%" border="1" bordercolor="#FFFFFF">
                            <tbody> 
                            <tr bgcolor="#CCCCCC" bordercolor="#333333"> 
                              <td> <font color="#000000" size="2">項目</font></td>
                              <td> <font color="#000000" size="2">名稱</font></td>
                              <td> 
                                <div align="center"><font color="#000000" size="2">數量</font></div>
                              </td>
                              <td> 
                                <div align="center"><font color="#000000" size="2">金額</font></div>
                              </td>
                            </tr>
                            <tr bordercolor="#CCCCCC"> 
                              <td bgcolor="#EEF7FD"><font size="2">1</font></td>
                              <td bgcolor=#EEF7FD><font size="2">NOKIA 8250</font></td>
                              <td bgcolor="#EEF7FD"> 
                                <div align="center"> <font size="2">1</font></div>
                              </td>
                              <td bgcolor="#EEF7FD"> 
                                <div align="right"><font size="2"><?php print $Amount?></font></div>
                              </td>
                            </tr>
                            <tr bordercolor="#CCCCCC"> 
                              <td align=right bgcolor="#EEF7FD"><font size="2"> </font></td>
                              <td bgcolor="#EEF7FD"><font color="#FF0000" size="2">金額小計</font></td>
                              <td align=right bgcolor="#EEF7FD"><font size="2"> </font></td>
                              <td align=right bgcolor="#EEF7FD"><font color="#FF0000" size="2"><?php print $Amount?></font></td>
                            </tr>
                            <tr bordercolor="#CCCCCC"> 
                              <td bgcolor="#EEF7FD" colspan=4>
                                   <div align="center"><font size="2"><input type=submit value="確定" name="submit"></font></div>
                              </td>
                            </tr>
                            </tbody> 
                          </table>
                        </td>
                      </tr>
                    </table>
                    <input type=hidden name="MerchantNumber" value="<?php print $MerchantNumber?>">
                    <input type=hidden name="OrderNumber"    value="<?php print $OrderNumber?>">
                    <input type=hidden name="Amount"         value="<?php print $Amount?>">
                    <input type=hidden name="OrgOrderNumber" value="<?php print $OrgOrderNumber?>">
                    <input type=hidden name="ApproveFlag"    value="<?php print $ApproveFlag?>">
                    <input type=hidden name="DepositFlag"    value="<?php print $DepositFlag?>">
                    <input type=hidden name="Englishmode"    value="<?php print $Englishmode?>">                    
                    <input type=hidden name="iphonepage"     value="<?php print $iphonepage?>">                    
                    <input type=hidden name="OrderURL"       value="<?php print ORDER_URL?>">
                    <input type=hidden name="ReturnURL"      value="<?php print RETURN_URL?>">
                    <input type=hidden name="checksum"       value="<?php print md5($MerchantNumber.$OrderNumber.CODE.$Amount)?>">
                    <input type=hidden name="op"             value="AcceptPayment">
                  </form>
                </td>
              </tr>
              <tr>
                <td height="60" colspan="2">&nbsp;</td>
              </tr>
              <tr>
                <td height="30" colspan="2"><img src="./image/rock.jpg" width="605" height="58" align="absbottom"></td>
              </tr>
        <tr>
          <TD colspan="2"><IMG src="./image/spacer.jpg" height=3 width=100%></TD>
        </TR>
        <tr valign="top" bgcolor="#FFFFFF">
                <td COLSPAN="2">
                  <div align="center"><img src="./image/ssl.jpg" width="186" height="30" align="absmiddle"></div>
          </td>
        </tr>
            </table>
          </td>
        </tr>
        <tr>
          <td bgcolor="#333333">
            <div align="center"><font face="Arial, Helvetica, sans-serif" size="1" color="#CCCCCC">Copyright
              (C) 2001. Neweb Technologies. All rights reserved.</font></div>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>
